﻿#region Copyright

//  ======================================================
//      Copyright (c) 2011 Toulr All rights reserved.
//     
//      The use and distribution terms for this software are contained in the file
//      named license.txt, which can be found in the root of this distribution.
//      By using this software in any fashion, you are agreeing to be bound by the
//      terms of this license.
//     
//     You must not remove this notice, or any other, from this software.
//  ======================================================

#endregion

#region Using Namespaces

using System;
using System.ComponentModel.DataAnnotations;

#endregion

namespace Toulr.Domains.Business
{
    /// <summary>
    ///   快递公司配置表
    /// </summary>
    public class ExpressDelivery:IEntity, IDisposable
    {
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.None)]
        public int Id { get; set; }

        /// <summary>
        ///   快递公司名称
        /// </summary>
        [MaxLength(30)]
        public String Name { get; set; }

        /// <summary>
        ///   快递公司描述
        /// </summary>
        [MaxLength(80)]
        public String Description { get; set; }

        /// <summary>
        ///   快递公司服务网址（用于订单查询等）
        /// </summary>
        [MaxLength(180)]
        public String ExpressDeliveryService { get; set; }

        /// <summary>
        ///   起送价格
        /// </summary>
        public float Prices { get; set; }

        /// <summary>
        ///   每公斤加价
        /// </summary>
        public float PricesPerKg { get; set; }

        /// <summary>
        ///   是否可用
        /// </summary>
        public bool Enabled { get; set; }

        public void Dispose()
        {
            throw new NotImplementedException();
        }
    }
}